<template>
  <div id="basicLayout">
    <a-layout style="min-height: 100vh">
      <a-layout-header class="header">
        <global-header />
      </a-layout-header>
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <a-layout-footer class="footer">
        <a href="https:eddy.plus">create by eddy</a>
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<style scoped>
#basicLayout {
}

#basicLayout .header {
  margin-bottom: 16px;
  box-shadow: #eee 1px 1px 5px;
}

/*
background: linear-gradient(to right, #f69d3c, #3f87a6);
背景色：渐变色，指定方向，开始颜色，结束颜色
  padding: 20px;  内边距，防止内容贴着浏览器边上
 */
#basicLayout .content {
  background: linear-gradient(to right, #fefefe, #fff);
  padding: 20px;
}

/*
  position: absolute: 绝对定位
  position: sticky; 粘性定位
  bottom:0            距离底部
  left: 0;            距离左边
  right: 0;           距离右边
  text-align: center; 字体居中
 */
#basicLayout .footer {
  background: #efefef;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}
</style>
<script setup lang="ts">
import GlobalHeader from "@/components/GlobalHeader.vue";
</script>
